]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
places: Use consistent variable for bookmark monitor timeout
authorColin Walters <walters@verbum.org>
Wed, 12 Aug 2009 16:29:33 +0000 (12:29 -0400)
committerColin Walters <walters@verbum.org>
Wed, 12 Aug 2009 23:34:02 +0000 (19:34 -0400)
We had an inconsistent usage of the timeout variable name.  Fix
it to consistently be a member property of this.

js/ui/places.js

index b11c97a174876195b02e979c516a69900aeeddf3..f4d1609f87c90a0e009baa3187f378ed05057769 100644 (file)
@@ -95,13 +95,13 @@ Places.prototype = {
         this._bookmarksPath = GLib.build_filenamev([GLib.get_home_dir(), ".gtk-bookmarks"]);
         this._bookmarksFile = Gio.file_new_for_path(this._bookmarksPath);
         let monitor = this._bookmarksFile.monitor_file(Gio.FileMonitorFlags.NONE, null);
-        let timeoutId = 0;
+        this._bookmarkTimeoutId = 0;
         monitor.connect('changed', Lang.bind(this, function () {
-            if (timeoutId > 0)
+            if (this._bookmarkTimeoutId > 0)
                 return;
             /* Defensive event compression */
-            timeoutId = Mainloop.timeout_add(100, Lang.bind(this, function () {
-                this._timeoutId = 0;
+            this._bookmarkTimeoutId = Mainloop.timeout_add(100, Lang.bind(this, function () {
+                this._bookmarkTimeoutId = 0;
                 this._reloadBookmarks();
                 return false;
             }));